<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>员工管理</title>
</head>
<body>

	<a href="${pageContext.request.contextPath}/toEmployeeAddJSP">添加员工</a>
	
	<table width="70%" border="0" cellspacing="0">
		<tr>
			<td bgcolor="#A3E6DF">id</td>
			<td bgcolor="#A3D7E6">姓名</td>
			<td bgcolor="#A3CCE6">电话</td>
			<td bgcolor="#A3CCE6">部门名称</td>
			<td bgcolor="#A3CCE6">操作</td>
 
		</tr>
		<c:forEach items="${allEmployees}" var="employee">
			<tr>
				<td class="tableopentd02">${employee.id}</td>
				<td class="tableopentd02">${employee.name}</td>
				<td class="tableopentd02">${employee.phone}</td>
				<td class="tableopentd02">${employee.departmentName}</td>
				<td class="tableopentd02">
					<a href="${pageContext.request.contextPath}/toEmployeeUpdateJSP?employeeId=${employee.id}">编辑</a>
					<a href="${pageContext.request.contextPath}/deleteEmployee?employeeId=${employee.id}">删除</a>
				</td>
			</tr>
		</c:forEach>
	</table>
</body>
</html>